Getting Started
Getting started is easy in a variety of ways.
GitLens
With the latest version of GitLens you can install the MCP Server easily from the command palette in VS Code, Cursor, and other IDEs based on VS Code.
(/wp-content/uploads//install-gitlens.png)
You can also install the MCP server using one of these convenient deeplinks:
The command and links will handle all of the configuration for you. You can then inspect the list of available MCP servers by making sure you are in Agent mode and clicking the gear icon in the bottom right corner of the copilot side panel.
Then, scroll through the list and you will see “MCP Server: GitKraken (bundled with GitLens)”.
GitKraken CLI (gitkraken-cli)
Download the latest release from https://www.gitkraken.com/cli
After installation, run gk auth login
in your terminal to authenticate with your GitKraken account.
After authentication, you will need to add the MCP server to your preferred agent.
VS Code
To install the MCP server into VS Code, you can run “MCP: Add server…” from the command palette.
In the following prompts, select “stdio” as the type of server.
In the next prompt, enter the command gk mcp
.
Finally, give the server a name and press enter.
You can then inspect the list of available MCP servers and tools by making sure you are in Agent mode and clicking the gear icon in the bottom right corner of the copilot side panel.
Cursor
Installing an MCP server into Cursor is easy. Using the command palette, select “View: Open MCP Settings”.
If you have no servers installed yet, you will see this screen. Simply click the “Add Custom MCP” button to get started.
Then, you will need to add the GitKraken MCP server to the JSON file. You can do this by copying the following JSON and pasting it.
{
"mcpServers": {
"gitkraken": {
"command": "gk",
"args": ["mcp"]
}
}
}
Claude Desktop
Claude’s MCP server process is a bit different than the IDEs, but is still fairly simple.
First, open the settings from the App toolbar and then click into the “Developer” tab.
Once you are in the developer tab, click the “Edit Config” button. This will open a directory containing claude_desktop_config.json
.
Edit that file using your favorite text editor and paste in the following JSON.
{
"mcpServers": {
"gitkraken": {
"command": "gk",
"args": ["mcp"]
}
}
}
Save the file and restart Claude.
JetBrains IntelliJ
JetBrains AI Assistant is required.
Navigate to Go to Settings > Tools > AI Assistant > Model Context Protocol (MCP)
Click Add to add a new MCP server configuration.
In the New MCP Server dialog, using the dropdown, select As JSON.
Paste the following JSON
{
"mcpServers": {
"gitkraken": {
"command": "gk",
"args": ["mcp"]
}
}
}
Next Steps
Once you are done setting up the MCP server, head over to our Example Workflows for inspiration on how to use the MCP server to make your day-to-day tasks easier and less tedious.